getName{ }
initialize{
  _context=context;
  if (_messageStore != null) {
    _messageStore.setSimulationContext(context);
  if (context.getModel() instanceof java.io.File) {
    java.io.InputStream is=new java.io.FileInputStream((java.io.File)context.getModel());
    _switchyard=new SwitchYard(is);
    System.getProperties().put(InitialContext.INITIAL_CONTEXT_FACTORY,JNDIFactory.class.getName());
    for (    Activator activator : _switchyard.getActivatorList()) {
      if (activator instanceof SOAPActivator) {
        _activator=(SOAPActivator)activator;
        for (        OutboundHandler oh : _activator.getOutboundHandlers().values()) {
          oh.setMessageStore(_messageStore);
}
getActivator{ }
isSupported{
  return (model.getName().endsWith(SWITCHYARD_DESCRIPTOR));
}
getModel{
  Object ret=null;
  if (model.getName().endsWith(SWITCHYARD_DESCRIPTOR)) {
    try {
      ret=new java.io.File(model.getName());
        ret=null;
        java.net.URL url=Thread.currentThread().getContextClassLoader().getResource(model.getName());
        if (url != null) {
 catch (    Throwable e) {
}
getModelRoles{
  return (java.util.Collections.emptyList());
}
getModelForRole{ }
onEvent{
  if (LOG.isLoggable(Level.FINE)) {
    LOG.fine("onEvent " + event);
  _messageStore.setHandler(handler);
  if (event instanceof ReceiveEvent) {
    final ReceiveEvent recv=(ReceiveEvent)event;
    incrementEventCounter();
    if (_activator.getInboundHandler().isOperation(recv.getOperationName())) {
      Thread t=new Thread(new Runnable(){
          try {
            java.io.InputStream is=_context.getResource(recv.getParameter().get(0).getValue());
            handler.processed(recv);
            String resp=_activator.getInboundHandler().invoke(recv.getOperationName(),new String(b),QName.valueOf(recv.getParameter().get(0).getType()));
              _messageStore.waitForSendEvent(recv.getOperationName(),resp);
 catch (          Throwable t) {
          decrementEventCounter();
      try {
        _messageStore.handleReceiveEvent(recv);
 catch (      Throwable t) {
      decrementEventCounter();
 else   if (event instanceof SendEvent) {
    SendEvent send=(SendEvent)event;
    try {
      _messageStore.handleSendEvent(send);
 catch (    Throwable t) {
    decrementEventCounter();
}
run{
    java.io.InputStream is=_context.getResource(recv.getParameter().get(0).getValue());
    byte[] b=new byte[is.available()];
    is.read(b);
    is.close();
    handler.processed(recv);
    String resp=_activator.getInboundHandler().invoke(recv.getOperationName(),new String(b),QName.valueOf(recv.getParameter().get(0).getType()));
    if (resp != null) {
      _messageStore.waitForSendEvent(recv.getOperationName(),resp);
 catch (  Throwable t) {
}
incrementEventCounter{
synchronized (this) {
    _eventCounter++;
}
decrementEventCounter{
    if (LOG.isLoggable(Level.FINEST)) {
}
close{
    while (_eventCounter > 0) {
      wait(5000);
  if (_messageStore != null) {
    _messageStore.close();
  if (_switchyard != null) {
}
getInitialContext{
  return new JNDIContext();
}
lookup{
  return (lookup(name.toString()));
}
lookup{
  if (!_contents.containsKey(name)) {
    if (name.equals(BINDING_CONTEXT)) {
      return (this);
 else     if (name.equals(BEAN_MANAGER_NAME)) {
    throw new NamingException("Item '" + name + "' not found");
  return (_contents.get(name));
}
bind{ }
bind{ }
rebind{ }
rebind{ }
unbind{ }
unbind{ }
rename{ }
rename{ }
list{ }
list{ }
listBindings{ }
listBindings{ }
destroySubcontext{ }
destroySubcontext{ }
createSubcontext{ }
createSubcontext{ }
lookupLink{ }
lookupLink{ }
getNameParser{ }
getNameParser{ }
composeName{ }
composeName{ }
addToEnvironment{ }
removeFromEnvironment{ }
getEnvironment{ }
close{ }
getNameInNamespace{ }
